Method and apparatus for image noise reduction using noise models

ABSTRACT

A method and apparatus for processing imager pixel signals to reduce noise. The processing includes receiving a target pixel signal, receiving at least one neighboring pixel signal, formulating a dynamic noise signal based at least in part on a value of the target pixel signal, and controlling a noise reduction operation using the dynamic noise signal.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. patent applicationSer. No. 13/330,041, filed Dec. 19, 2011, which is a divisional of U.S.patent application Ser. No. 11/512,299, filed Aug. 30, 2006, thedisclosures of which are incorporated herein by reference in theirentirety.

FIELD OF THE INVENTION

Disclosed embodiments relate to image processing to reduce image noise.

BACKGROUND OF THE INVENTION

Digital image capture has received widespread acceptance by users ofimage capture equipment. Both still and video digital cameras, which usesolid-state imagers or image sensors to capture images, are presently inwidespread use. Common solid-state imagers, which have an array ofpixels for image capture are based on CCD and CMOS technology, as wellas others.

One problem confronted by solid-state imagers is the presence of noisein the captured image, particularly under low-light conditions, and/orwhere an ISO setting of a camera is set high, resulting in shorter imageintegration times. Image noise appears in a displayed or a printed imageas a graininess in the image.

Past image capture processing approaches have been used in an attempt toreduce image noise. Such approaches typically rely on a softening, orblurring, of the overall image. However, such techniques may soften theentire image, even in areas of the image where noise is not present oris at least visually imperceptible. Moreover, softening of the overallimage—analogous to a small defocusing of an imaging lens—reduces imagesharpness, which is typically undesirable.

Color imagers typically output red/green/blue (RGB) color signals from apixel array, since each imager pixel is typically covered by one of ared, green, or blue filter; arranged, for example, as in a Bayerpattern, illustrated in FIG. 1. To obtain red, green, and blueinformation for each pixel of an image, color interpolation is needed.This process, known as “demosaicing,” analyzes the color values ofappropriate neighboring pixels to estimate, in effect, each pixel'sunknown color data. If one of the green pixels on a RGRG sequence lineof the Bayer pattern (e.g., the third line of the array 82 of FIG. 1) isbeing read out, the process of color interpolation estimates the pixel'sblue value by looking at the values of the blue pixels above and belowit, and combining those blue values. For the red color estimate, theprocess looks at the values of the red pixels to the left and right ofthe green pixel and combines those values.

The captured image is subject to blur due to various causes, including alimited resolution of the camera lens, inter-pixel cross-talk in thesensor array and various image processing that adds intentional orunintentional blur. Aperture correction sharpens or “deblurs” the image.The sharpening is performed by increasing the gain of high frequencycomponents of the image. While this makes the overall image sharper, italso accentuates any noise in the image, since random pixel-to-pixelvariations are amplified, as well.

The RGB values, determined during demosaicing, may be converted to YUVvalues, where Y is a luminance value and UV are chrominance values foradditional pixel processing. Conventional aperture correction involvescomparing the difference in a luminance value of the target pixel andits surrounding pixels to a preset threshold value, set duringmanufacturing. If the threshold value is exceeded, the target pixel issubjected to aperture correction, e.g., increase of that difference, ata preset level. Such conventional systems select the threshold value tominimize visible noise in areas of all levels of brightness. This mayresult in excessive blur of dark areas, while achieving only moderatenoise suppression in bright areas.

Accordingly, there is a need and desire to more selectively reduce noisein a captured image in accordance with detected image noise parameters.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a top-down view of a conventional color filter array used inconnection with an imager pixel array.

FIG. 2 is a block diagram of an imaging device which may implement anembodiment described herein.

FIG. 3 is a block diagram of a sensor core depicted in FIG. 2.

FIG. 4 is a block diagram of one embodiment of a portion of the colorpipeline illustrated in FIG. 3.

FIG. 5A is a flowchart of processing implemented by the FIG. 4 pipelineportion.

FIG. 5B is a graph of noise reducing threshold value as a function of atarget pixel's luminance.

FIG. 6 is a block diagram of another embodiment of a portion of thecolor pipeline illustrated in FIG. 3.

FIG. 7A is a flowchart of processing implemented by the FIG. 6 pipelineportion.

FIG. 7B is a diagram of a color filter array including an edge.

FIG. 7C is a diagram of another color filter array including an edge.

FIG. 8 is an embodiment of a camera system which can be used with theFIG. 2 imaging device.

DETAILED DESCRIPTION OF THE INVENTION

In the following detailed description, reference is made to theaccompanying drawings, which form a part hereof and show by way ofillustration specific embodiments in which the invention may bepracticed. These embodiments are described in sufficient detail toenable those skilled in the art to practice them, and it is to beunderstood that other embodiments may be utilized, and that structural,logical, processing, and electrical changes may be made. The progressionof processing steps described is an example; however, the sequence ofsteps is not limited to that set forth herein and may be changed as isknown in the art, with the exception of steps necessarily occurring in acertain order.

The term “pixel,” as used herein, refers to a photo-element unit cellcontaining a photosensor and associated transistors for convertingphotons to an electrical signal.

The embodiments described herein are presented in the context of a CMOSimager, which is employed in a digital still or video camera to reducenoise in a captured image. However, this is but one example of an imagerthat may be used. Embodiments may be implemented using other imagecapture technologies such as, e.g., CCD. Indeed, embodiments can beimplemented to reduce noise on any image captured by any image capturingtechnology, using the post-image capture digital processing techniquesdescribed herein.

Now referring to the figures, where like numerals designate likeelements, FIG. 2 shows an embodiment of an image capture device 100. TheFIG. 2 image capture device 100 may be implemented, though not required,as a system on a chip design, where all components illustrated arefabricated on a single integrated circuit. The image capture device 100may use any type of image sensing technology, i.e., CCD, CMOS, etc.

The image capture device 100 comprises a sensor core 200 thatcommunicates with an image flow processor 110 that is connected to anoutput interface 130. A phase lock loop (PLL) 244 is used as a clock forthe sensor core 200. The image flow processor 110, which is responsiblefor image and color processing, includes interpolation line buffers 112,decimator line buffers 114, and a color processing pipeline 120. One ofthe functions of the color processor pipeline 120 is to performdemosaicing, and other pixel processing operations, including noisereduction in accordance with the embodiments as more fully discussedbelow.

The output interface 130 includes an output first-in-first-out (FIFO)parallel buffer 132, and a serial Mobile Industry Processing Interface(MIPI) output 134, particularly where the image capture device 100 isused in a camera in a mobile telephone environment. The user can selecteither a serial output or a parallel output by setting registers in aconfiguration register within the image capture device 100 chip. Aninternal bus 140 connects read only memory (ROM) 142, a microcontroller144 and a static random access memory (SRAM) 146 to the sensor core 200,image flow processor 110, and output interface 130.

FIG. 3 illustrates an exemplary sensor core 200 used in the FIG. 2 imagecapture device 100. The sensor core 200 includes in one embodiment aCMOS imager pixel array 202, although any type of solid state array coremay be used with the invention. Pixel array 202 is connected to analogprocessing circuit 208 by a green1/green2 channel 204 which outputspixel signals corresponding to two green channels of the pixel array,and through a red/blue channel 206 which contains pixel signalscorresponding to the red and blue channels of the array.

Although only two channels 204 and 206 are illustrated, there areeffectively four channels, since the green1 and green2 signals are readout at different times using channel 204, and the red and blue signalsare likewise read out at different times using channel 206.

The analog processing circuitry 208 outputs RGB information as processedgreen1/green2 signals G1/G2 to a first analog-to-digital converter (ADC)214 and processed red/blue signals R/B to a second analog-to-digitalconverter 216. The outputs of the two analog-to-digital converters 214,216 are sent to a digital processor 230, which forms a digitalrepresentation of a captured image.

Connected to, or as part of, the array 202 are row and column decoders211, 209 and row and column driver circuitry 212, 210 that arecontrolled by a timing and control circuit 240 to capture images usingthe array 202. The timing and control circuit 240 uses control registers242 to determine how the array 202 and other components are controlled.As set forth above, the PLL 244 serves as a clock for the components inthe core 200.

Pixel array 202 comprises a plurality of pixels arranged in apredetermined number of columns and rows. In operation, for a CMOSimager, the pixels of each row and array are all turned on at the sametime by a row select line and the pixels of each column within the roware selectively output onto column output lines by a column selectcircuit. A plurality of row and column lines are provided for the entirearray 202. The row lines are selectively activated by row drivercircuitry 212 in response to row address decoder 211 and column selectlines are selectively activated by a column driver 210 in response tocolumn address decoder 209. Thus, a row and column address is providedfor each pixel. The timing and control circuit 240 controls the addressdecoders 211, 209 for selecting the appropriate row and column lines forpixel readout, and the row and column driver circuitry 212, 210, whichapply driving voltages to the drive transistors of the selected row andcolumn lines.

Each column contains sampling capacitors and switches in the analogprocessing circuit 208 that read a pixel reset signal V_(rst) and apixel image signal V_(sig) for selected pixels. Because the core 200uses green1/green2 channel 204 and a separate red/blue channel 206,circuitry 208 will have the capacity to store V_(rst) and V_(sig)signals for green1/green2 and red/blue pixel signals. A differentialsignal (V_(rst)−V_(sig)) is produced by differential amplifierscontained in the analog processing circuitry 208. A differential signal(V_(rst)−V_(sig)) is produced by differential amplifiers containedwithin the circuitry 208 for each pixel output signal. Thus, the signalsG1/G2 and R/B are differential signals representing respective pixelbrightness values that are digitized by a respective analog-to-digitalconverter 214, 216. The analog-to-digital converters 214, 216 supply thedigitized G1/G2 and RIB pixel signals to the digital processor 230 whichforms the digital image output (e.g., a 10 bit digital output). Theoutput is sent to the image flow processor 110 (FIG. 2) for furtherprocessing. The image flow processor 110 will, among things, performcolor correction, and other adjustments on the captured image digitalpixel values applied thereto.

Although the sensor core 200 has been described with reference to use ofa CMOS imager pixel array, this is merely one type of sensor core thatmay be used. Other sensor cores having a different readout architecturemay also be used. For example, a CCD core could be used, which suppliespixel signals for processing to an image flow signal processor 110. Thecolor pipeline 120 of the image flow processor 110 performs a number ofoperations on the pixel signals received thereat, one of which isselective noise reduction.

For purposes of simplifying the present description, the followingembodiments are described below in connection with reducing noise in acaptured image. Noise reduction is performed selectively bydistinguishing statistically significant image features frominsignificant ones. Embodiments include dynamically varying the degreeof aperture correction, dynamically varying the degree of blurring bythe demosaic process, or both.

Embodiments described herein include comparing the target pixel and theat least one surround pixel to a dynamic noise threshold, andcontrolling a noise reduction operation based on the result of thecomparison.

In general, statistically insignificant features are indistinguishablefrom noise in the image. If the feature is already masked heavily bynoise, the amount of aperture correction applied to such features can bereduced without adversely impacting the visibility of that feature.Conversely, statistically significant features that do stand above noiselevel may be subjected to a full amount of aperture correction.

Edge-aware demosaic and noise reduction processes can benefit from astatistical measure of confidence about edge presence. Some edge-awareprocesses detect the presence of an edge by comparing a difference ofvalues from pixels near each other to a threshold. The threshold iseither fixed or set for the image based on current sensor analog gainand integration time. However, since the amount of noise in the pixelresponse may be a function of the pixel response itself, a fixed noisethreshold can mistakenly detect the presence of an edge. Using a noisemodel leads to a more reliable detection of edges. In the case of anedge-aware demosaic or noise reduction it is possible to calculate thethreshold as a function of the value of the pixel pair.

Embodiments described herein identify statistically significant imagefeatures based on having prior knowledge of image pixel noisecharacteristics and system noise characteristics. For each pixel beingprocessed, an estimate of noise present in the pixel's signal value iscalculated based on a noise model which includes information on pixeland pixel processing system noise, including noise estimate values and afloor threshold floor value. If the noise estimate is high, noisereduction is applied aggressively to that pixel since the noise ismasking existing image features.

A pixel receiving a constant exposure can often be modeled by a randomvariable X with expected value E(X) and standard deviation as follows:

σ=√{square root over (a·E(X)² +b·E(X)+c)}{square root over (a·E(X)²+b·E(X)+c)}  (1)

where constants a, b, and c represent contributions to pixel noise fromvarious sources. For example, a may correspond to the pixel responsenon-uniformity contribution; b may correspond to photon shot noisecontribution; and c may correspond to read noise, fixed pattern noise,and digital quantization error. Pixel response non-uniformity is relatedto an individual pixel's conversion gain. Photon shot noise is relatedto a temporal variation in photon capture by an individual pixel'sphotosensor.

To estimate the amount of noise in the image the following techniquesuse simplified relationships compared to the formula above. Therelationships are simplified to such an extent that they are suitablefor simple and efficient hardware and software implementation.

Referring to FIG. 4, a portion 400 of the color pipeline 120 of FIG. 2is illustrated. FIG. 5A is a flowchart of processing 500 implemented bythe FIG. 4 pipeline portion 400. Portion 400 includes a demosaicing unit410, a color correction module 430, a noise model unit 450, an aperturecorrection unit 460, and a combining circuit 445.

Demosaicing unit 410 receives digital pixel signals from sensor core 200as RGB signals (step 510) and produces demosaiced pixel signals as rawdemosaiced data Raw RGB on output 415, and as luminance informationY_(pixel) for demosaiced target pixels on output 420 (step 520). Inaddition, demosaiced luminance information Y_(surround) for pixelssurrounding the target pixel being processed is also provided on output425. Color correction module 430 performs color correction processing ofthe demosaiced data Raw RGB. The color correction module 430 producesoutput color information in the known YUV format, where Y representsluminance output on path 435, and U and V represent chrominancecomponents output on path 440 for further processing. The luminancecomponent Y is sent to a combining circuit 445 which may be, forexample, an adder unit. In another embodiment, the aperture correctionsignal Y_(AP) can be added to demosaiced data Raw RGB, and thecombination is then received by color correction module 430. In thiscase the demosaiced data Raw RGB should be converted to YUV format tomake possible the addition of Y_(AP) to the luminance component of thedemosaiced data.

Noise model unit 450 receives the Y_(pixel) signal and the Y_(surround)signal, and determines a noise reducing threshold value T_(AP) (step530). Aperture correction unit 460 receives the noise reducing thresholdvalue T_(AP) from the output 455 of noise model unit 450, and theluminance signals Y_(pixel) and Y_(surround) from demosaicing unit 410,and determines whether aperture correction is required based on thereceived signals T_(AP), Y_(pixel), Y_(surround) (step 540).Determination of whether aperture correction is required is describedbelow.

If aperture correction is required (step 540), then aperture correctionunit 460 produces a noise reduced aperture correction signal Y_(AP) onoutput 465 (step 550) (described below) which is combined in combiningcircuit 445 with the luminance signal Y from color correction module430, producing a corrected luminance signal Y+Y_(AP) (step 560). Thecorrected luminance signal Y+Y_(AP) is sent to other processing units inthe color correction pipeline 120 (step 570). If aperture correction isnot required for the target pixel (step 540), then only the luminancevalue Y is output from portion 400 (step 580).

FIG. 5B is a graph of noise reducing threshold value T_(AP) as afunction of a target pixel's luminance Y_(Pixel). The line Constantshows a conventional constant-value noise reducing threshold valueT_(AP), which causes the aperture correction process to blur dark areas(low Y_(Pixel)) too much and suppress noise insufficiently in brightareas (high Y_(Pixel)). The line Dynamic shows a dynamically set noisereducing threshold value T_(AP), implemented in embodiments disclosedherein, which allows for different blurring amounts in bright and darkareas. T_(N0) is a noise floor offset, a minimum noise reducingthreshold value. Using a simple linear noise model the aperturecorrection (Y_(AP)) added into the image may be calculated in step 550as follows:

Y _(d) =Y _(Pixel) −Y _(Surround)   (2)

Y _(AP)=(|Y _(d) |−T _(AP))*k _(AP)*sgn(Y _(d))   (3)

where Y_(Pixel) is the target pixel's luminance, Y_(Surround) is theaverage of the pixel's surrounding the target pixel, Yd is anintermediate value representing the difference between Y_(Pixel) andY_(Surround), T_(AP) is a noise reducing threshold value, k_(AP) is anaperture correction gain, and sgn(Y_(d)) is a value of 1 or −1 based onthe sign of Y_(d). Thus, if the difference between Y_(Pixel) andY_(Surround) is greater than T_(AP) (i.e., exceeds the noise reductionthreshold value), then aperture correction unit 460 will generate apositive value for the noise reduced aperture correction signal Y_(AP),indicating that aperture correction is required for the target pixel(step 570). Otherwise, aperture correction unit 460 will not generatethe noise reduced aperture correction signal Y_(AP), so that aperturecorrection is not performed for the target pixel (step 580).

In one embodiment, the noise reducing threshold value T_(AP) may varydynamically, as follows:

T _(AP) =Y _(Pixel) k _(N) +T _(N0)   (4)

where k_(N) is a pixel model noise slope, and T_(N0) is a noise flooroffset. This equation is a first-degree estimate of pixel noise as afunction of the pixel response. A more complicated formula may be usedto provide a more accurate estimate, if desired.

According to another embodiment, the noise reducing threshold valueT_(AP) is determined (step 530) according to:

T _(AP) =Y _(pixel) *k _(Npixel) +Y _(surround) *k _(Nsurround) +T _(N0)  (5)

where k_(Npixel) is a noise estimate for the target pixel, k_(Nsurround)is a noise estimate for the surrounding pixels, and T_(N0) is a noisefloor offset. In an alternative embodiment Y_(pixel) can be replaced bythe pixel value itself.

The noise model unit 450 and aperture correction unit 460 cooperate tosubstantially reduce noise in a captured image. Typically, aperturecorrection by unit 460 is designed to remove some of the blurringeffects of the lens, the sensor array, and the demosaicing processperformed by demosaicing unit 410. Each pixel is assigned a noisereducing threshold value T_(AP) for comparison based on the noise model.The noise reducing threshold value T_(AP) may be determined, forexample, based on the brightness of the individual target pixel asillustrated in FIG. 5B. Therefore, selective sharpening may be employedto sharpen only parts of the image for which sharpening is necessary,thereby avoiding amplification of noise.

In another embodiment, noise reduction is performed during thedemosaicing process. FIG. 6 is a block diagram of another embodiment ofa portion 600 of the color pipeline 120 illustrated in FIG. 2. FIG. 7Ais a flowchart of processing 700 implemented by the FIG. 6 pipelineportion 600. Portion 600 includes a demosaic and noise reduction unit610 and a noise model unit 630.

Demosaic and noise reduction unit 610 receives digital pixel signalsfrom sensor core 200 (FIG. 2) as Bayer RGB signals (step 710). Inaddition, demosaic and noise reduction unit 610 generates pixel valuesfor a target pixel P_(PixelA) on output 620, and pixel values for anearby pixel P_(PixelB) on output 625, which are received by noise modelunit 630 (step 720). Noise model unit 630 dynamically generates thedemosaic threshold T_(edge) according to a noise model (step 730). Thedemosaic threshold T_(edge) is then output to demosaic and noisereduction unit 610, which uses T_(edge) to look for edges (step 740), orsharp transitions in color or brightness. Using a dynamically determinedT_(edge) using a noise model reduces the effects of noise in the edgedetection process, which increases the accuracy of the edge detection.

If an edge is present, the demosaic and noise reduction unit 610 usesonly surrounding pixels on the same side of the edge to producedemosaiced pixel signals as raw data Raw RGB on output 615 (step 750),which blurs the image less, i.e., only on the same side as the targetpixel. If no edge is present, the demosaic and noise reduction unit 610uses all surrounding pixels to produce demosaiced pixel signals as rawdata Raw RGB on output 615 (step 760), which blurs the image more.

FIG. 7B is a diagram of a color filter array 770 including an edge.Color filter array 770 includes a target pixel A and a nearby pixel B,where target pixel A is adjacent to an edge, or brightness transitionpoint. The presence of an edge may be tested for according to thefollowing tests:

T _(edge) <|P _(PixelA) −P _(PixelB)| (i.e., edge is present)   (6)

T _(edge) ≧|P _(PixelA) −P _(PixelB)| (i.e., edge is not present)   (7)

where T_(edge) is the demosaic threshold, P_(PixelA) is the pixel valuefor the target pixel, and P_(PixelB) is the pixel value for the nearbypixel.

The demosaic threshold T_(edge) may be calculated dynamically by eitherof the following:

T _(Edge) =P _(PixelA) *k _(N) +T _(N0), or   (8)

T _(Edge) =P _(PixelA) *k _(N A) +P _(PixelB) *k _(N B) +T _(N0)   (9)

where k_(N), k_(N A), k_(N B) and T_(N0) are coefficients making up alinear noise model.

In another embodiment, an edge may be detected according to a quadraticmodel, including:

T _(edge) ²<(P _(PixelA) −P _(PixelB))² (i.e., edge is present)   (10)

T _(edge) ²≧(P _(PixelA) −P _(PixelB))² (i.e., edge is not present),where   (11)

T _(edge) ² =P _(PixelA) ² *k _(N A2) +P _(PixelA) *k _(N A1) +T _(N0),or alternatively,   (12)

T _(edge) ² =P _(PixelA) ² *k _(N A2) +P _(PixelA) *k _(N A1) +P_(PixelB) ² *k _(N B2) +P _(PixelB) *P _(PixelB) ² *k _(N B2) +P_(PixelB) *k _(N B1) +T _(N0)   (13)

where T_(edge) is the demosaic threshold, P_(PixelA) is the pixel valuefor the target pixel, P_(PixelB) is the pixel value for the nearbypixel, and where k_(N A1), k_(N B1), k_(N A2), k_(N B2), and T_(N0) arecoefficients making up a quadratic noise model. The hardwareimplementation for performing these calculations may be relativelyinexpensive, as square root calculations may be avoided by raising bothsides of the inequality to the power of two.

Other embodiments may perform edge detection by comparing two areas ofan image, rather than only two pixels of the image. Using formulas (10)through (13) to detect the edge, P_(PixelA) and P_(PixelB) may besubstituted with an estimate for area brightness on one side of the edgeand on the other side according to:

P _(PixelA)(x,y)=P _(AreaA)(x,y)=avg(P _(i,j) |P _(i,j) adjacent topixel (x,y) and P _(i,j) on side A)   (14)

P _(PixelB)(x,y)=P _(AreaB)(x,y)=avg(P _(i,j) |P _(i,j) adjacent topixel (x,y) and P _(i,j l on side B))   (15)

where P_(AreaA) is an estimate for area brightness for the area definedby the target pixel A at the location (x,y) and selected pixelssurrounding the target pixel A, P_(AreaB) is an estimate for areabrightness for the area defined by the neighboring pixel B on the otherside of the edge being tested, i and j are coordinates for the centraltarget pixel A, and avg is an averaging function.

FIG. 7C is a diagram of another color filter array 780 including anedge. As another example, color filter array 780 includes a plurality oftarget pixels E and a plurality of nearby pixels F, where the areadefined by the target pixels E is adjacent to an edge. In color filterarray 780, the target pixels E and nearby pixels F are evenlydistributed within their respective areas, with eight target pixels Eand five nearby pixels F. Therefore, using equations (14) and (15)above, the estimates for area brightness become:

P _(AreaE)(x,y)=avg(P _(i,j) , P _(i−2,j) , P _(i+2,j) , P _(i,j−2) , P_(i−2,j−2) , P _(i+2,j−2))   (16)

P _(AreaF)(x,y)=avg(P _(i,j+2) , P _(i−2,j+2) , P _(i+2,j+2))   (17)

where P_(AreaE) is an estimate for area brightness for an area definedby the target pixels E, P_(AreaF) is an estimate for area brightness foran area defined by the nearby pixels F, i and j are coordinates for acentral target pixel E, and avg is an averaging function.

The disclosed techniques may also be applied to noise reduction filtersthat operate on raw data before demosaicing and rely on edge detection.Such techniques typically assess if an edge is present in a localneighborhood. If no edges are present, a filter may average or otherwiseblur pixel responses. However, if an edge is present, the blur may notbe applied; or the blur may be applied to average or blur along theedge, and not across the edge.

Performance of such filters may be improved by using a pixel noise modelto detect edges, for example, using techniques such as those illustratedin FIGS. 7B and 7C. The amount of blur applied may also be dynamicallyadjusted similarly to the technique illustrated in FIG. 4.

There are many existing techniques for edge detection. It should beunderstood that the disclosed techniques may be applied to other edgedetection methods. For example, demosaicing may detect an edge whileexamining the green color planes by comparing a green pixel estimatewith the values of four surrounding green pixels. The green pixelestimate, for example, may be computed as an average or a median valueof the four surrounding green pixels. Equations (6) through (13) may beapplicable in such cases, as well.

In a camera, pixel noise model parameters may be separately selected andused for each available ISO setting. If a camera does not explicitlysupport ISO settings, pixel noise model parameters may be varied as afunction of analog gain settings and/or digital gain settings. Ifappropriate, individual parameters should be used for each colorchannel. For example, when performing edge detection using a pixel noisemodel on a Bayer pattern array as shown in FIG. 7C, a separate set ofparameters may be used when comparing pixels in the red, green, and bluecolor planes if pixels of different colors have a different analogand/or digital gain. If the digital gain varies as a function of pixellocation, such as to compensate for lens vignetting effects, pixel noisemodel parameters may also be varied accordingly as a function of pixellocation.

It should be noted that the embodiments described with reference toFIGS. 4-7C may be used independently, as well as together, in the samesystem, e.g. imaging device 100.

FIG. 8 is an embodiment of a camera system which can be used with theFIG. 2 imaging device 100 having a color pipeline 120 implementing anembodiment of the invention. Camera system 800, for example, a still orvideo camera system, which generally comprises a lens 830 for focusingan image on the pixel array 202 (FIG. 2), a central processing unit(CPU) 805, such as a microprocessor for controlling camera operations,that communicates with one or more input/output (I/O) devices 810 over abus 815. Imaging device 100 also communicates with the CPU 805 over bus815. The system 800 also includes random access memory (RAM) 820, andcan include removable memory 825, such as flash memory, which alsocommunicate with CPU 805 over the bus 815. Imaging device 100 may becombined with a processor, such as a CPU, digital signal processor, ormicroprocessor, with or without memory storage on a single integratedcircuit or on a different chip than the processor.

The camera system 800 is an example of a system having digital circuitsthat could include image sensor devices. Without being limiting, such asystem could include a computer system, camera system, scanner, machinevision, vehicle navigation, video phone, surveillance system, auto focussystem, star tracker system, motion detection system, imagestabilization system, and data compression system.

The processes and devices in the above description and drawingsillustrate examples of methods and devices of many that could be usedand produced to achieve the objects, features, and advantages ofembodiments described herein. Thus, they are not to be seen as limitedby the foregoing description of the embodiments, but only limited by theappended claims.

What is claimed as new and desired to be protected by Letters Patent ofthe United States is:
 1. A camera system comprising: a lens; an imagingdevice which further comprises: a pixel processing unit for processing areceived target pixel signal and at least one neighboring pixel signalrepresenting respective pixel signals in the captured image; a noiseunit for providing a dynamic noise signal; and a pixel processingcontrol unit for controlling the pixel processing unit in accordancewith a relationship of at least the intermediate value to the dynamicnoise signal; and, at least one camera system selectable settingproviding different selectable values for the setting, wherein theimaging device is configured to use a selectable setting value as abasis for controlling the pixel processing unit.
 2. The camera system ofclaim 1, wherein the pixel processing unit subtractively combines thereceived target pixel signal and the at least one neighboring pixelsignal to form an intermediate value.
 3. The camera system of claim 1,wherein the pixel processing unit is configured to determine a noiseadjustment signal, by subtractively combining the intermediate value andthe dynamic noise signal, and add the noise adjustment signal to thetarget pixel signal only if the intermediate value is greater than thedynamic noise signal.
 4. The camera system of claim 1, wherein theselectable setting is an ISO setting.
 5. The camera system of claim 1,wherein the selectable setting is a gain setting.
 6. The camera systemof claim 5, wherein the gain setting is an analog gain setting.
 7. Thecamera system of claim 5, wherein the gain setting is a digital gainsetting.
 8. The camera system of claim 5, wherein the gain setting isdifferent for pixel signals in each of a red, green, and blue colorplane.
 9. The camera system of claim 8, wherein controlling the pixelprocessing unit is based at least in-part on the color plane of thepixel signals.
 10. A camera system comprising: a lens; an imaging devicehaving: a noise model unit for determining a dynamic noise thresholdbased on at least one target pixel signal and a noise model; and, anaperture correction unit configured to compare a subtractive combinationof at least the target pixel signal and a neighboring pixel signal tothe dynamic noise threshold, and to control a noise reduction operationbased at least in-part on the result of the comparison; and, at leastone camera system selectable setting providing different selectablevalues for the setting, wherein the imaging device is configured to usea selectable setting value as a basis for controlling the noisereduction operation.
 11. The camera system of claim 10, wherein thesetting is an ISO setting.
 12. The camera system of claim 10, whereinthe setting is a gain setting.
 13. The camera system of claim 12,wherein the gain setting is an analog gain setting.
 14. The camerasystem of claim 12, wherein the gain setting is a digital gain setting.15. The camera system of claim 12, wherein the gain setting is differentfor pixel signals in each of a red, green, and blue color plane.
 16. Thecamera system of claim 15, wherein the color plane of the pixel signalsis used at least in-part as a basis for controlling the noise reductionoperation.
 17. A method of processing imager pixel signals in a camerasystem to reduce noise, the method comprising: receiving a target pixelsignal and at least one neighboring pixel signal representing respectivepixel signals in the captured image; formulating a dynamic noise signalbased at least in part on a value of the target pixel signal;subtractively combining the target pixel signal and the at least oneneighboring pixel signal to form an intermediate value; and controllinga noise reduction operation using the dynamic noise signal bysubtractively combining the intermediate value and the dynamic noisesignal to form a noise adjustment signal and adding the noise adjustmentsignal to the target pixel signal only if the intermediate value isgreater than the dynamic noise signal; wherein controlling the noisereduction operation is based at least in-part on a selectable setting ofthe camera which provides different selectable values, and the methodfurther comprises at least one of selecting a value for the selectablesetting or using a previously selected value for the selectable settingas a basis for controlling the noise reduction operation.
 18. The methodof claim 17, wherein the selectable setting is an ISO setting.
 19. Themethod of claim 17, wherein the selectable setting is a gain setting.20. The method of claim 19, wherein gain setting is different for pixelsignals in each of a red, green, and blue color plane, and the colorplane of the pixel signals is used at least in-part as a basis forcontrolling the noise reduction operation.